secret_number = "10"
guess_number = ""
guess_count = 0
guess_limit = 3
out_of_guesses = False

while guess_number != secret_number and not (out_of_guesses):
    if guess_count < guess_limit:
        guess_number = input("Enter a number: ")
        guess_count = guess_count + 1
    else:
        out_of_guesses = True

if out_of_guesses:
    print("you lose!")
else:
    print("you win!")
